package com.example.iotmanagerment26.domain.vo;

import com.example.iotmanagerment26.domain.Card;
import com.example.iotmanagerment26.domain.User;

public class UserCard extends User {
    Card card;

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    public UserCard() {
    }

    public UserCard(Card card) {
        this.card = card;
    }

    public UserCard(int id, String username, String password, String power, String cardId, Card card) {
        super(id, username, password, power, cardId);
        this.card = card;
    }

    @Override
    public String toString() {
        return "UserCard{" +
                "card=" + card +
                '}';
    }
}
